package edu.nf.relaxenjoy.service;

import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartRequest;

import java.util.List;

/**
 * @author zhu
 * @date 2024-12-18
 */
public interface MinioService {

    /**
     * 上传文件
     *
     * @param file
     * @return
     */
    String uploadFile(MultipartFile file);

    /**
     * 批量上传文件
     *
     * @param request
     * @return
     */
    List<String> uploadFiles(Integer num, MultipartRequest request);

    /**
     * 删除文件
     *
     * @param fileName
     * @return
     */
    void deleteFile(String fileName);

    /**
     * 批量删除文件
     *
     * @param fileNames
     * @return
     */
    void deleteFiles(List<String> fileNames);
}
